package io.renren.modules.cuttingcur.dao;

import io.renren.modules.cuttingcur.entity.OldCuttinginfoEntity;
import io.renren.modules.cuttingcur.entity.CuttingmachineCurdataEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.renren.modules.cuttingcur.service.impl.CuttingmachineCurdataServiceImpl;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 
 * 
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2022-08-28 09:40:29
 */
@Mapper
public interface CuttingmachineCurdataDao extends BaseMapper<CuttingmachineCurdataEntity> {

    List<CuttingmachineCurdataEntity> listAll();

    List<CuttingmachineCurdataDao> getCuttingMachine();

    int postCuttingData(OldCuttinginfoEntity oldCuttinginfoEntity);

    List<OldCuttinginfoEntity> getCuttingInfoByDeviceId(String deviceId);

    List<OldCuttinginfoEntity> listCuttinginfo();


    int updateByDeviceId(String deviceId, String deviceName, String deviceType, String deviceProfileName, String deviceProtocol, String createdTime);


    List<CuttingmachineCurdataServiceImpl.CutData> cutNew();
}
